BudgetList

Container for the budgets in a data file

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Create a new budget, add it to the list, and return it

Link copied to clipboard
fun addListener(listener: BudgetListener?)

Add a listener for events that affect the budget list or the budgets in the list.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Return the most recent budget found that contains today's date. If none of the budgets contain today's date, then it returns the last budget in the list (sorted alphabetically).

Link copied to clipboard
fun getBudgetWithID(budgetID: String?): Budget?

Get the budget with the given key, if any

Link copied to clipboard

Get the budget with the given key, if any

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun removeBudget(budget: Budget?): Boolean

Remove the given budget from the list. Returns true if the budget was in the list.

Link copied to clipboard

Removeo a listener for events that affect the budget list or the budgets in the list.